<template>
  <div>
    <p>这是sssssssssssssss</p>
    <!-- <h3>{{ num1 }}</h3> -->
    <!-- <h3>{{ value }}</h3> -->
    <!-- <button @click="qwq">点击加1</button> -->
    <p>这个是a : {{ a }}</p>
    <p>这个是b : {{ b }}</p>
    <button @click="qaq">点击加1</button>
  </div>
</template>

<script>
export default {
  props: {
    // value: { type: Number, required: true }
    a: { type: Number, required: true },
    b: { type: Number, required: true }
  },
  data() {
    return {
      num2: 100
    }
  },
  methods: {
    // qwq() {
    //   this.$emit('input', ++this.num2)
    // }
    qaq() {
      this.$emit('update:a', ++this.num2)
      this.$emit('update:b', this.num2++)
    }
  }
}
</script>

<style>
</style>
